package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.Attendance;
import cn.wolfcode.crm.domain.Employee;
import cn.wolfcode.crm.query.impl.AttendanceQuery;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface AttendanceMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Attendance record);

    List<Attendance> selectAll();

    int updateByUserAndSignTime(Attendance record);

    int queryForCount(AttendanceQuery qo);

    List<Attendance> queryForList(AttendanceQuery qo);

    Attendance selectByUserId2Date(@Param("employee")Employee employee, @Param("date")Date date);
}